<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2017/9/27
  Time: 19:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册页面</title>
</head>
<body>
<%
    String error = "";
    String temp = (String) request.getAttribute("error");
    if(temp != null){
        error = temp;
    }
%>
<p style="color: red"><%= error%></p>
<form action="/web/logonServlet" method="post">
    <table>
        <tr>
            <td><h1>注册</h1></td>
        </tr>
        <tr>
            <td>用户名:</td>
            <td><input id="username" type="text" name="username" value=""></td>
        </tr>
        <tr>
            <td>密码:</td>
            <td><input type="password" name="password" value=""></td>
        </tr>
        <tr>
            <td>确认密码:</td>
            <td><input type="password" name="check_password" value=""></td>
        </tr>
        <tr>
            <td colspan="2" align="center"><input type="submit" value="注册"></td>
        </tr>
    </table>
</form>
</body>
</html>
